import { createApp } from 'vue'
import { createPinia } from 'pinia'

import { Form, Field, CellGroup, Icon } from 'vant';
import { Button } from 'vant';
import { NavBar } from 'vant';
import { Uploader } from 'vant';
import { Dialog } from 'vant';
import { Toast } from 'vant';

import "@/assets/Alibaba-icon/iconfont.css";
import "@/assets/Alibaba-icon/iconfont.js";

import App from './App.vue'
import router from './router'

import axios from 'axios';

axios.defaults.withCredentials=true;

const app = createApp(App)

app.use(Uploader);
app.use(NavBar);
app.use(Button);
app.use(Form);
app.use(Field);
app.use(CellGroup);
app.use(Icon);
app.use(Dialog);
app.use(Toast);

app.use(createPinia())
app.use(router)

app.mount('#app')
